package com.dragonwu.controller;

import java.security.Principal;

/**
 * @author DragonWu
 * @since 2022-10-10 10:57
 **/
public class UserInfoController {

    public Principal userInfo(Principal principal) {
        //使用ThreadLocal 来实现的
        //类似于
        //Authentication authentication= SecurityContextHolder.getContext().getAuthentication();
        return principal;
    }
}
